Notifications

Day 2: It’s really dark in here…


Since this is your first piece of new code, we’ve included two versions

to prove an important point. One with comments, and one without. They

are 100% functionally equivalent.


Comments are ignored by the

compiler and are a feature useful to YOU to help make code more

readable. It may look long and daunting, but it’s mostly just useful

information for you to read.

When you remove all the comments, it becomes a LOT smaller, but with

less potentially useful information for the developer (you!)


The exact same code without comments:


TL;DR: Don’t be afraid of comments! Good programmers use comments. Start good habits and try adding some yourself!


PF Patrick Flood

Can anyone tell me why this doesn't save progress after closing the program. Each re-entry I have to go through and check off the Starter vids & the 0 & 1 courses?


I am signed in (hence name attached to comment), so I would assume my progress would be saved/tracked as well.

QA Quebec Astronaut

@Patrick Flood Maybe your browser is preventing the storage of cookies?


EB EDO BaPa

Hello. Is happening since changed to CraftingTable. I don't know how to fix it. I sent a comment about it but until now no answer. Is annoying.

JT John Thomson

the light wont light up

JT John Thomson

@John Thomson PLS HELLLLLLLLLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPPP

AY Anson Young

are you sure it's wired correctly?

NF Nadine Ferguson

@John Thomson Please check your connections carefully. A mistake I had a habit of making was to read the inputs on the HERO board incorrectly.and try to use input #13 instead of input #12.Also, I wouldn't have the LED oriented correctly. Took me several tries to get it right.

DN Dan Nuttle

@John Thomson It didn't for me at first. I jiggled the LED in the breadboard and it lit up. Breadboards aren't always entirely reliable. So jiggle the LED a little, and/or the resistor and the wires, to make sure they're properly seated.

DJ Darrin G Just

in the DUINO app what it the cabin lights code under?????

TM T Morkovsky

it says "we've included the comments in the code" but I don't understand where the code actually is. Is it saved in a file that I have? I just looked at what you had typed and recreated it from scratch, it worked fine, but it seems like im missing some referenced documents somehow.

MT Michael Tucker

re-run the video, and listen and watch closely. I had to rewatch a few times and pause several times and back up on some items but eventually cathered all the information I needed. However I am 60 and things don't come to my understanding as well as they use to.but the comments are at the ends of the code after the // from my understanding.

MT Michael Tucker

@John Thomson look closely at the pin connections to make sure they are inserted in the correct hole. they are close together and easy to miss.Did you make sure the Arduino is being seen by the program by checking the Board and COM port in the tool file?


RG Robert Grimes


Welcome to the internet

Have a look around

Anything that brain of yours can think of can be found

We've got mountains of content

Some better, some worse

If none of it's of interest to you, you'd be the first

Welcome to the internet

Come and take a seat

Would you like to see the news or any famous women's feet?

There's no need to panic

This isn't a test, haha

Just nod or shake your head and we'll do the rest

Welcome to the internet

What would you prefer?

Would you like to fight for civil rights or tweet a racial slur?

Be happy

Be horny

Be bursting with rage

We got a million different ways to engage

Welcome to the internet

Put your cares aside

Here's a tip for straining pasta

Here's a nine-year-old who died

We got movies, and doctors, and fantasy sports

And a bunch of colored pencil drawings

Of all the different characters in Harry Potter fucking each other

Welcome to the internet

Hold on to your socks

'Cause a random guy just kindly sent you photos of his cock

They are grainy and off-putting

He just sent you more

Don't act surprised, you know you like it, you whore

See a man beheaded

Get offended, see a shrink

Show us pictures of your children

Tell us every thought you think

Start a rumor, buy a broom

Or send a death threat to a boomer

Or DM a girl and groom her

Do a Zoom or find a tumor in your

Here's a healthy breakfast option

You should kill your mom

Here's why women never fnck you

Here's how you can build a bomb

Which Power Ranger are you?

Take this quirky quiz

Obama sent the immigrants to vaccinate your kids

Could I interest you in everything?

All of the time?

A little bit of everything

All of the time

Apathy's a tragedy

And boredom is a crime

Anything and everything

All of the time

Could I interest you in everything?

All of the time?

A little bit of everything

All of the time

Apathy's a tragedy

And boredom is a crime

Anything and everything

All of the time

You know, it wasn't always like this

Not very long ago

Just before your time

Right before the towers fell, circa '99

This was catalogs

Travel blogs

A chat room or two

We set our sights and spent our nights

Waiting

For you, you, insatiable you

Mommy let you use her iPad

You were barely two

And it did all the things

We designed it to do

Now look at you, oh

Look at you, you, you

Unstoppable, watchable

Your time is now

Your inside's out

Honey, how you grew

And if we stick together

Who knows what we'll do

It was always the plan

To put the world in your hand

Hahaha

Could I interest you in everything?

All of the time

A bit of everything

All of the time

Apathy's a tragedy

And boredom is a crime

Anything and everything

All of the time

Could I interest you in everything?

All of the time

A little bit of everything

All of the time

Apathy's a tragedy

And boredom is a crime

Anything and everything

And anything and everything

And anything and everything

And all of the time



JD Juliette Dupré

@EDO BaPa Same issue here - Crafting Table this is your bug, not ours.

AS Addison Schairer

can I separate the rainbow wires

AS Addison Schairer

?

JP Jason Puehler

@Addison Schairer Yes, they pull apart.

JP Jason Puehler

Although it was not mentioned here and as a good practice, you should use wire cutters to remove the resisters from the tape strips. You will lose some of the lead, but you also avoid leaving any of the glue residue on the resister, which can interfere with the connection.

AY Anson Young

@T Morkovsky that's what I did and it turned out fine

AY Anson Young

@Jason Puehler thank you

AM Andy Mathews

@Addison Schairer Yes, you'll need to. I expect by the end, all of them will be separated.

I have exactly what they have written written down, but it’s saying that the pinMode was not declared

@Geraldo Rivera search “arduino IDE on your search engine

MB Michaela Boyd

i cant find my code in arduino on lesson 2

RR Ryan Rocole

Is she ok? She seems like she needs help.

AW Able Ward

I cant find the code either

RW Ryan Williams

Fyi, if you're having an issue like I did with the led not lighting up, try changing out the wire. One of the wires I chose was faulty. Took me an hour plus to figure it out, and it wasn't even me who figured it out.

MB Michaela Boyd

Where is the code on the website.

DK Duane Karlin

hiithisisyourmom










AL Allison Larios

I dont understand how Alex got to the premise code because I don't see it anywhere

Please help

AL Allison Larios

Premade not premise

kb kane bray

how do you get the program

Just a tip: don't rest the Hero board on top of the wrapper it comes in. The wrapper is conductive and can cause a short, at the very least causing the LED not to blink, and maybe worse.

IA Isaac Aguilar

@Sara Trammell Are you sure you did not add an extra zero? If not, I suggest unplugging everything from the board and trying again.

FM Finn Mills

hello, this is my first time doing something like this and i couldn't figure out how to paste the code for day 2 into the arduino ide. I someone would please explain to me what i should do i would very much apriciate it.

KW Katherine White

Cabin lights on!

AW Able Ward

copy and paste the code above on arduino in a new file


DC David Corkum

The links to the Mission Resources is broken, so there is no was to access the sample code or other resource that are supposed to be available. Crafting table please get these fixed

DC David Corkum

@kane bray you have to type it for now because the links to the Mission resources is broken

JT Jennifer Taylor

@Patrick Flood This might be a silly question but are you clicking the "continue and complete" button? It doesn't automatically save your progress, only if you use that button. I clicked a few videos before I figured that out.

BG